package com.kingwang.training.designpattern.decorator.bo;

public class Milk extends AbstractDecorator {
    private Double milkCost = 2.0;

    private String milkName = "加牛奶";

    public Milk(Drinkable drink) {
        super(drink);
    }

    @Override
    public Double cost() {
        return super.cost() + this.milkCost;
    }

    @Override
    public String info() {
        return super.info() + this.milkName;
    }
}
